fix position of where binding relative to functions lambda, was outside, now inside