improvement for enabling shader