removed unused and invalid scope