assigning code snippets to vars