code organization
some playing around