function map and all toAESpace