add struct sample