shape recognition algorithm
rm temp file (algo)