fixed erroe returning value from void.