controlLoop modifications