changed name of main a4a function and added sca restricted function