fix - should now work in both directions