add analyze code