add common def