changed php file structure