code with k=200