more code cleanup. Attempt to get texture repeat to be happy