replaced sysout by log4j