added modified spark