works for multiple param functions