added basic overlap loop for one row