bug fix in euler 8