return value inconsistent