hash and better drawing