removed data_compare protoype and function