fix code style in regression