removed unused variables ku and kl