removed unnecessary computation.