renamed temp variables