adding the start to masking.py, generation of a masking function