refactor. Removing unnecessary code lines.