prepare for processing data