improved code quality of all fs examples