refactored success merge