call ensureGreen instead of explicit call