changed insert to 2 maps