working BSA structure output