set and get functions overloaded with same name