prepare to process