An experimental investigation on the innate relationship between quality and refactoring