small correction in func_sgwi