fixing data insert