adaptation for different text sizes