adding texture if necessary