eliminate php4 code - which was throwing a notice in php5.4