fixing double nested conditionals with an else
removed temp folder