beginning of rest method