organising code #2