adding compare, but not working yet