restrict with for code, too