update to be comparable with php 5.5