i wanted to try but this is a code shared with someone i work with that knows code better than I, so i didn't want to mess up his part
Their way is inefficient and less readable. But I understand the hesitancy.