fixes line error
fixes missing miscount