organize  code