clearing before drawing