added function to resize text