update for texture mapping