added a pretty implode function