added code to  list the directory