fixed call by reference by sp