Private functions are in priveateHash.h implemented all functionalities