replace texture2D with texture