updated xplain - generates error
updated xplain with fixed q calls