edit code rename function