added significance handling to $record