change implementation of fls as general format