refactoring & adding immediate transfer example