added func declarations