merge existing code