add line mirror func