function to get sp list object