cut out the relevant data