updated compare, comment to compare ints and doubles