demeaned all functions