move higher order functions to appropriately named file