oops, missed a return statement in my copy/pasting.