code by allen