head:main method written