some superimportant corrections for adaptive shader version