add references and stuff