removes php 5.3 function