registering the set method