another when condition syntax error