confirm length before setting results