changed code to analysis