add return value judgment