modify typeobj rest method