forgot a const
simpler clearing function