remove unused vars

you memorized `active` but never used it. maybe you want to use it instead.