adding the input

and also fixing bugs in the location.cs