modified extraction script for new data