made it compile with new sp