added approach for trim in atlas loader