fixed it so it actually works