buildStaticMap and buildDynamicMap - remove parameters