A (silicon) boron nitride deposition process based on diborane and ammonia chemistry has been developed. Stable (silicon) boron nitride films have been obtained and the film properties were characterized. The mechanical resistance of boron nitride films against abrasives is utilized for stop layer applications for chemical mechanical polishing. The effectiveness of stop layers can be enhanced by end point detection systems. Two different systems will be discussed.