work on the extraction of PRIMUS data