updated power gap method