added code as of dec.13