insert now gives the right data