simplifying server method