change types for `y` and `n`