changed direction into global enum