removed unused tmp2