Loop improvement