adding clearpart statement