add codereview and testcases for condition part