function parsing added