finish addRow
partially implement start and end, change scopes