works, but not for memory transferring now