more work on k, n