writing code outside of the loop