add return value to remove error under mac