still need to add more error output but fixed a typo