ordered list debugged version