normalized raplacing - bug with checkig rows