trap map loop