one error. temp variable might not be initialised.