created modified_fire.pyx, optimizer requires testing