replacing checkbox to auto