modified: cr func.