add check return value after put