half way through lesson 5. issue with final check returning only file type