removed redundant showtext function