made animation loading more dynamic