replacing adc assert by 7F mask