fixed restrictions (delete still broken)