added formula for vertx 2