put_diff should return boolean