add offset for sigmoid equation