added new FF and switching mode