renamed temp vars