sigmoid function edits