added find_last_n