insert working correctly