implode correctly