# currentLocation.transform "missing parameter type"

**URL:** <https://community.gatling.io/t/currentlocation-transform-missing-parameter-type/3819>\
**Category:** Gatling (Open-Source)\
**Created:** [July 12, 2017, 8:59am UTC](https://community.gatling.io/t/currentlocation-transform-missing-parameter-type/3819 "2017-07-12T08:59:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zxdev777](https://avatars.discourse-cdn.com/v4/letter/z/9de0a6/32.png) [@zxdev777](https://community.gatling.io/u/zxdev777)\
**Post date:** [July 12, 2017, 8:59am UTC](https://community.gatling.io/t/currentlocation-transform-missing-parameter-type/3819/1 "2017-07-12T08:59:22Z")

</div>

Hi all,

for someone maybe easy question.

I just wanted to extract some info from current user location and save it as session param

code snippet:

.check(  
currentLocation.transform((v, s) =\> v)  
)

code above has compilation errors: “missing parameter type” with both parameters ‘v’ and ‘s’

Code snippet, which works fine:

.check(  
css(“a…”, “id”)  
.transform { (v, sess) =\> …

What is wrong with first code ? It is used in many examples. I should have all imports:

import io.gatling.core.Predef.\_  
import io.gatling.http.Predef.\_

I am running on version 2.2.5

Thanks in advance
