removing main function