I made the function for insert