fixes some errors in the last commit