compatibility for php 5.5