I feel like maybe this would be a good candidate for a util class, but i'm okay with this for now