tweaks to sample PHP