created foo function