cleaned up a deprecated function