the to_i here was the initial bug...