utils: atlas guard borders