fix method vs attribute
type