functions of auto return