updated a6 script