adding function a