fix all explicit errors, need further check