forgot to break out of struct, causing weird bug with functions