correct for php 5.5