ENH: remove unnecessary computation