removed system.out and changed output to seq