testing manhattan method