removed system outs from code