added direction in the
added directions in the code