use variables to appoint path