fix. texture parameter broke everything