simple optimization of the minimap