made methods real, instead of lambdas