added analysis codes