added clear context method