removed backwards compatability for php3