put some code in functions