remove size assertion and do insert for map