additional functions

loop, calculations, display results