cleaned up OpenCL code slightly