add rectify and overlap wrap