modified secondpass to create appropriately named kernels but I think i need to take it further