add text rendering , minor changes