added coref stuff