fixed the min bug. Can't compare strings + ints dude...