we can probably get rid of the comments, and make all these if statements single line now to save on LOC