corrected dir listing
changed format of input