remove unnecessary calculation