assign automatically csp expression