added a clear comment and removed old code