further coding of module ca-qa (NOT FINISHED)