some code organization