add definition of location
add direction colmun into output