copied over PEAR method
removed check