added wei code