modify to pass tests for kernel function launching