added the method to reduce overhead when doing a simile check for a row