adding deconstructor (of sorts)