declare a function for cyclic dependency