removed old syserr and sysout statemets
merged