corrected for the summary() error