remove inline debug and add join explanation