list.rev stuff, array access fixed