minor changes in diplom.c