fix to test condition