not sure how much I like how i had to handle this...