there's probably some better way i could have coded this but it's good enough just play around with the thing