removed legacy function