:new: add direction type control function