clean ref