started implementing b.c. in textures