Fixed function  check