added for common insert function