remove redefinition of default argument
do not use unitialized g_value as temp store