placed stuff in functions