fixed outdated URLs.
small code optimization.