updated lambda invocation
added wildcard for if