fix use of temp vars