minor tweak for php speed, see #10