changed the structure of php files