checking paths