modified: brm func.