update class for results based on length