reduce the number of lines of code

this is so much simpler buddy