can you add some doc about the `direction` argument