modified q1.sh a bit