made log return  as well