improves looping structures and function documentation