Remove dependency on mean value

update the code & report