further corrections for adaptive shader