cannot find root added to display and made allowedPercentError a constant