adding comparing functionality to gas - not working yet