i\'m trying to slim down some code I\'ve already written and i cant figure out a way to do it. ill show my code below. sorry if my question is badly phrased ive never used t