currying before immutability