change input from `interface{}` to []byte