updating end point from autocomplete
removing commented out code