removed unnecessary temp variables.