changed deprecated text alignment