change level types to integer to remove to_i