added directory to the code