changed the type ~> as per our discussion