special function for inserting with Int key