way easier way to do this