modified 18 vjec.c