swapping gist with pre