changed tmp hack to var