implements the way to process in memory