adding analysis codes