finish mriq and histogram