* api for declaring functions