Revert "define n in broader scope"

This reverts commit b1ddfd58a18a6a47f73ec0c05188110ac90e0906.
Revert "define n in broader scope"

This reverts commit 560b4713ea2a95aae5bb3a8c9ad7404123c89a44.
add missing colon