added in percentage method for hash