moved helper functions back out of the class because those only need to be created once, duh!