refined inserting functions for vector
refined functions