changed function declaration from foo = (a,b) -> to foo = |a,b| ->