Removed  unwanted checks in  check function