you could do these with lambdas, though it would get a bit ugly