adding getter and setter for resId