removing unused calculation