changed macro to func in spec.ipf