merge with exit