added comments to getbycity method