added support for negative leakage and implemented alpha param