update to process routine