change if..else to ?..:, delete community