maintenance and repair optimization