Adjust code for split sparse