remove unused main function