added type for merge