removed sysouts and fixed error