removeError & removeValue functions