changed main function