type mismatch after irrelevant refactoring

I did some minor refacotring and am now running into the following problem,

15:52:00.894 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - C:\Scenarios.scala:41: type mismatch;
found : io.gatling.http.request.builder.HttpRequestBuilder
required: io.gatling.core.validation.Validation[io.gatling.core.session.Session]
15:52:00.898 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - check(responseTimeInMillis)
15:52:00.899 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - ^
15:52:01.411 [main][ERROR][ZincCompiler.scala:108] i.g.c.ZincCompiler$ - one error found

This is the code im using:

val post = during(60 seconds) {
exec(session => {
val body = “”“HELLO”""
http(“DoIt”).
post("/ddd").
body(StringBody(body)).
asJSON.
headers(HTTPConfig.postHeaders).
check(responseTimeInMillis)
})
}

Any suggestions?