the `when` here is unnecessary