I'm not even sure how I ended up doing this