can you remove `when`