updated brain.process to return tuple