spine function