major code revisions