compatibility with php v5.3