remove unused `n` variable