added func.