removed texture swapping