checkDepth -> checkBuffers as more appropriate