change private_flag to is_private