else if fix Program 6