fixed another error in inCheck