finished the method to create elements from q lib