import Hamza's code for qti