alternate inputs not messed up anymore and output queried