attempt fix for php5.2