simple currying script