additions to code