allow row functions to take a class