main a little more compact
better name
instead of while a recursive call is more elegant