add a as function