changed direction strings to lambdas