deleting duplicate server code