added user rest code