run merge function after removing placeholders