insert working for struct data type