removed sql / ifn as argument all together