added support for switching direction