update 

Change definition of coustm_vale to chars array instead of allocating mem;