simplify get and set when type is 1 to 1 with method