basic functions of survival