improved expression const correctness, allowed variables to be referenced in during kernel allocation