alpha-beta function prototype