can now pass in terrain type