updating to use the process method