removed unneeded write_data_command assignment