small fix
if -> when
small fix
small fix