added better itteration though list size