modified keywrd.c