check status before merging