use location
added tests