moving function out to usable space.