you are still computing this information 3 times.