implementation of sigma transformation