final fix for sp