before get and set