added direction plotting