changed ArrayList to Vector and removed some printlns