added unit calculator and string hash