well it seems converting to an int was slowing it down... about a 75% speed increase