added a codebit and corrected some things