added export to get use fo function