implemented comparable in dataEntry