adjusting in the after perfom loops