compare stack tags as well as item id