made delegatr optional