added a get differnece to enttity
ignoring an illigal argument exception from the java library