adding missing pwd variable