in the name of his research , he continued to leave notes for her , getting gradually more flirtatious , until at last he was so ashamed of himself , he stayed behind at the cabin to apologize to her in person .