refactor AtlasUtils.as