sigmoid tested and working