changing to flags for textures