added function to compare linearization type