added analyze funtion to statements