update flip code