be compatible with  php 5.4 and php 5.5