added function spec