convert range for obj