If there is a better way to do that then I would love to hear about it. i'm not super great at ruby