fix to recognize - signs in inputs