modified monitor stack and peak