added the texture mapping code, but doesn't work