block: combined callback functions to set_k_and_l