changed draw shape in order to remove linked line