trying to fix error in php 5.3