add method to set value for rendering