a bit of code organization