added attr_accessor in devi model