added methods to set values.