exporting function added