function type check while data traversal