removed directions of paths