merged with negative inputs