applying some changes to php file