do comp and dep registration only if they are not empty