exported funtions corrected