added methods to change variables