some changes that could've made code faster

but didn't