script for q8 and q9