add Method func