made tmp directory a variable