using new syntax for curried functions