added between compare and upated getlatest term