completed block insert function