took out unused code for text rendering