moved restore functions to the end of the reduce reads command (fewer steps)