removed main function and main file