hook and look malloc and free
adjust charts for pi