corrected syntax for using hash in calling function.