added beginning of processing