most functions to sp