Made some changes in sigmoid