moving things around, putting things into functions