change tmp into vector, to delete constants