changed php methods