added coordinate searching, still no testing