removes helper function