add grid enable action
fix wu algorithm