added setLocatingToAndFrom card function