Yeah fixed reference of sp.write