add when-statement of X10