close to working now, but last number is wrong.