refactor getbbfstg
some formatting