eddited some outputs, program is not complete yet, there are bugs