flip3 routine