organize all code