fixed insertion issue