now uses variables for names of important files