modification on getPartialname