all of these directories can be reduced using an array and iterating