Adding and replacing rows via enlargement