fixing the destroy part