directory doesn't need to be initialized to empty string (line 12)