added processData stuff