fix for checkFunction