yay spaghetti code