remove unnecessary styleLine function