added emissions printing, still debugging a line