perfect anno and longest string implemented