correcting mistakes  it output