added clearDirections method