coordinate algorithm prototyping