added other codes for analysis