However, at the end of 1777 the diocese of Olomouc had been elevated to the status of an archdiocese, and in 1782 the first Archbishop of Olomouc Antonín Theodor Colloredo-Waldsee enforced relocation back by decree of Emperor Joseph II. At the same time the institution lost its university status, becoming a mere academic Lyceum. The Emperor had decided to retain only three universities, in Prague, Vienna, and Lviv. Teaching of medicine became a separate field, in which surgeons and obstetricians' assistants were taught.