chnaged reutrn type of function