moved draw_fields to the device