slight modification of default behavior of find kth to last