add for loop and else-statement