prepare_data start of implementation