cleanup device match