created  for use with php5.3