fixed beginning with range bug
analyze test