adding todo - rename def to var