add check whether merged