fixed row numbers for merge