changed php snippets