N should be int