code for analisys