removing redundant code for mirror