adding log(1+exp) function as a sigmoid