when keyword escapes to whenValue