added setting functionality