add hamm solution