Now only updates map after dilation process