code refactoring about the rest of the fsa codes.