compiles but bug in sp2 method