condense options to_i into one line