simplfied the code while i was looking at it