added references to code copied from other sources