wasn't working. deleted unnecessary code and fixed it