update () should return -1 in case if failed