insertion fully working now