also modified source2AGinput to work with Robert's corpus