add clear context method