modify reference type of character