solved small problem in ej3.c