changing N to be 20 for use with sample data