cleaned up .to_i use