mirror code clean