change rest method