A simulation of high energy cosmic ray propagation 2