modify srv to a instance var