oops, added 1 to len_f