compare dec with sub