fixed some to_i business