Why is the last entry set to 1?