methods have arrays that are not sorted the same each time. fixed