code cleaned links looped