simplified the fsm syntax
added FSM variables