removing function unnecessary of wright php file