appears no mistakes, but the method 'delete' cannot be shown! why?