exports function