add clockwise condition