separating method to set server data