added loops, they do not have stopping mechanism yet, but double return breaks out of the loop