code from fidelaptop to be tested.