Trying to fix errors, also ripping my hair out