redoing texture code