added references and code