British Rail reserved the TOPS Class 97 designation for departmental locomotives . These were used for special or engineering duties . British Rail reserved the TOPS Class 97 designation for departmental locomotives , which were used for special or engineering duties .