delete DrawState class