rest method done