correct typo
separate origin find into its own method; it will be reused in future functions