melt and dcast first pass