added func comment