debugged list functions