midified algotithm to return differnt hash