compatible with older php versions