hack to support functions with two arguments