do not need a separate variable for holding the value of current directory