remove useless debug message, clarify conversion of slice to map