improve direction editing