added ondelete property