clean up faux gamma code