adding sysout for analysis purpose.