commented out deprecated calls for php5.6