update curried code, partial programming