fixed some sp syntax