added support in soft clipping and changed parameters to private