restructure index of method
downgrade fol loop
moved length