exporting the function