created "call-with-correct-args" to clean up function calling logic