some inputs problems fixed