conversion for php 5.3, not 5.4