implemented scope $destroy