small refinement to modal