changed compute hash to pass in filebytes