liquid added energy to dots function counts energy added correctly