retrieve swap interval functions, but doesn't work...