patched the insert function because of the date bug
nothing I remember