in case of less than  PHP5.2