added mirror mode