add curried subs function