change hostname function