result after modifying code and sparse opt