use *interface instead of *[]byte, which works for all types