Oops, looks like you swapped input and output