implemented charge attribute