fixed some input stuff