updates to function checking