removed main function