fixes mistype k instead of , and unused c var