correcting to be valid in php 5.3