forgot about lambdas - used them to replace functors