hash cleanup