fix for RecFunc