he took a candle from his pocket , lit it then melted wax onto the peak of a cloth cap , as soon as there was enough wax to set it into he fixed the candle to the peak and placed the cap on his head .