adding auto mask features