removed comments from main function