added map updating