kinda fixed the compiler, but my method is still incorrect