Removed old map flip fn