basic swap funcs declaration