Understanding the nanostructure formation in block copolymer thin film