added new feature for getting users