cast pwd to var