updated exp function - serial working, concurrent need to work on it